#!/usr/bin/bash

export DJANGO_SETTINGS_MODULE=celery_server.settings
export DEBUG=TRUE
export BROKER=redis://localhost:6379/0

cd /home/debian/dev/celery_server
sudo supervisorctl stop celery_server
poetry run gunicorn celery_server.wsgi --user debian --bind 127.0.0.1:65533 --reload
